#include <stdio.h>

int main(void)
{
	// sizeof()运算符 计算的就是数据类型的大小, 结果是一个长整型,用格式占位符%ld
	printf("char占存储空间的大小为:%ld\n", sizeof(char));
	printf("short占存储空间的大小为:%ld\n", sizeof(short));
	printf("int占存储空间的大小为:%ld\n", sizeof(int));
	printf("long占存储空间的大小为:%ld\n", sizeof(long));
	printf("long long占存储空间的大小为:%ld\n", sizeof(long long));
	printf("float占存储空间的大小为:%ld\n", sizeof(float));
	printf("double占存储空间的大小为:%ld\n", sizeof(double));
	printf("long double占存储空间的大小为:%ld\n", sizeof(long double));

	return 0;
}


